<?php
include_once(dirname(__FILE__)."/../../include/lxbase.class.php");
class Qybase{
	public $zqconn;
	public $vqconn;
	public $onconn;
	public $smarty;
	public function __construct() {
		$this->zqconn=new Lxbase();
		$vqdbary = Lxbase::getconfig("olddb");
		$ondbary = array("host"=>'103.7.222.31',"port"=>3306,"user"=>"qyer","pass"=>"qYf2^8L!ne","name"=>"qiyueII","dbbefore"=>"qy_");
		$vqondbary = array("host"=>'103.7.222.41',"prot"=>3306,"user"=>"b2ctest","pass"=>"B2@c@2tE8T","name"=>"qiyuedb","dbbefore"=>"tp_");
		$this->vqconn=new Lxbase($vqdbary);
		$this->onconn = new Lxbase($ondbary);
		$this->vqonconn = new Lxbase($vqondbary);
		$this->userinfo = $_SESSION["userinfo"];
		$this->smarty = $this->zqconn->smarty('qyupdate');
   }
}